PIZZA Current compiler version: 0.39d
A substantial companion to Java
Frequently Asked Questions (with Answers)
Installation and Troubleshooting

Contents
Home
Mirrors
FAQ index

Distribution
Support
Documents

Applications
Users

People
Links

The pizza compiler doesn't run. Help!
Some general tips for getting Pizza to run:

First, make sure that Java runs. Try both

javac
and
java <a Java program>
If Java doesn't work, check your Java installation or the installation guide provided by
Sun.

If Java does run then there are two common problem sources. Make sure your CLASSPATH includes the Pizza classes, as a couple of questions below (one and another one) address. The second common problem is the setup of the pc command.

When I try to run Pizza I get:
 Can't find class pizza/compiler/Main 

You did not setup your CLASSPATH correctly. On Unix systems, run setenv to find out the current value of your CLASSPATH. On Windows systems, run set instead. There should be a directory, say `X', in your CLASSPATH such that

`X'/pizza/compiler/Main.class
exists. Make sure that this is the case. Also make sure that the directory name `X' does not contain any parts such as "~" that need to be expamded by a shell - this often leads to unexpected results.

I can compile a class, but when I try to run it I get
 > java
mypackage.MyClass can't find mypackage.MyClass
Your generated classfile is somewhere where java can't find it. Run pc with the -verbose option to find out where your classfile goes. You need a directory, say `X', in your CLASSPATH such that

X/mypackage/MyClass.class exists. See the answer to the previous question to find out what your CLASSPATH is. To make sure that java always finds generated classfiles, include a -d X option in your compile command, where `X' is a directory in your CLASSPATH. It is often easiest just to make that part of the pc alias:

How can I install Pizza on OS/2,the Macintosh
OS, Windows 3.11, etc.?
Unfortunately, we don't know. It's hard for us to support for these platforms since we don't have experience with them, or easy access to them.

Having said that, we would welcome an installation guides or suggestions for any of platform we do not directly support. If you've gotten Pizza to run on the Bizzarro Mark 23 (or even something with a less interesting name!), and you'd be willing to write up and take questions about an installation sheet, please get in touch with us.


Page design & maintenance:
John Maraist.
Answers by Martin Odersky, Christian Kemper, Enno Runne and John Maraist.
Java is a trademark of Sun Microsystems.
Comments and bug reports to the Pizza Group, pizza@cis.unisa.edu.au.
All software and documents on the Pizza site are © Copyright 1996, 1997 by the respective authors (as attributed on each; terms for redistribution are available).